<!-- Global Admin Page Title (Max. Google:69, Yahoo:72-75, Bing:65, Ask:69) - 5 Aug 2009 -->
<title><?php echo SITE_NAME; ?> - Administrator Section</title>

<!-- Meta Tags -->
<!-- Page Description (Max. Google:156, Yahoo:161, Bing:150, Ask:312) - 5 Aug 2009 -->
<meta name="description" content="This website is made by MvZ">
<!-- Page Keywords (Max. 30 keywords or 180 characters) -->
<meta name="keywords" content="mvz">
<!-- Setting robots to deny or crawl CMS page -->
<meta name="robots" content="noindex,nofollow" />

<!-- Page Fav Icon -->
<?php
	$sql = "select filename from ms_file where stsrc = 'A' and filerole = 'favicon' order by dateup desc, datein desc limit 0,1";
	$exe = mysql_query($sql) or die(mysql_error());
	$num = mysql_num_rows($exe);
	$row = mysql_fetch_array($exe);
	
	if($num > 0)
	{
?>
<link type="image/x-icon" rel="shortcut icon" href="<?php echo getURLdomain()."/upload/".$row['filename'];?>"  />
<link type="image/x-icon" rel="icon" href="<?php echo getURLdomain()."/upload/".$row['filename'];?>" />
<?php
	}
	else
	{
?>
<link type="image/x-icon" rel="shortcut icon" href="<?php echo PATH_FAVICON;?>"  />
<link type="image/x-icon" rel="icon" href="<?php echo PATH_FAVICON;?>" />
<?php
	}
?>
<!-- Load Default Global CSS & JS -->
<link type="text/css" rel="stylesheet" href="<?php echo getURLdomain(); ?>/source/admin/css/admin.css">
<link type="text/css" rel="stylesheet" href="<?php echo getURLdomain(); ?>/source/global/css/html5.css">
<link type="text/css" rel="stylesheet" href="<?php echo getURLdomain(); ?>/source/global/css/checkbox.css">
<link type="text/css" rel="stylesheet" href="<?php echo getURLdomain(); ?>/source/global/css/select.css">
<link type="text/css" rel="stylesheet" href="<?php echo getURLdomain(); ?>/source/global/css/button.css">
<script type="text/javascript" language="javascript" src="<?php echo getURLdomain(); ?>/source/global/js/sivamtime.js"></script>

<!-- JQuery #0 : Library -->
<script type="text/javascript" src="<?php echo getURLdomain(); ?>/source/global/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<?php echo getURLdomain(); ?>/source/global/jquery/jquery.cookie.js"></script>

<!-- Jquery #1 : Pop Up Nyro Modal -->
<script type="text/javascript" src="<?php echo getURLdomain(); ?>/source/admin/jquery/nyroModal/js/jquery.nyroModal.custom.js"></script>
<link type="text/css" rel="stylesheet" media="screen" href="<?php echo getURLdomain(); ?>/source/admin/jquery/nyroModal/styles/nyroModal.css" />
<!--[if IE 6]>
	<script type="text/javascript" src="js/jquery.nyroModal-ie6.min.js"></script>
<![endif]-->
<script type="text/javascript">
	$(function() {
		$('.nyroModal').nm();
	});
</script>
<?php if(isset($_SESSION['msg'])){ ?>
<script type="text/javascript">
	$(document).ready(function(){
		$.nmManual('<?php echo URL_HOME_SITE_ADMIN; ?>/message.php');
	});
</script>
<?php 
	}
?>

<!-- Jquery #2 : Lazy Load Image -->
<script type="text/javascript" src="<?php echo URL_HOME_SITE; ?>/source/admin/jquery/LazyLoad/jquery.lazyload.js"></script>
<script type="text/javascript" charset="utf-8">
	$(function() {
		$("img").lazyload({
			effect : "fadeIn"
		});
		$("img.lazy").show().lazyload();
	});
</script>
<style type="text/css">
.lazy {
  display: none;
}
</style>

<!-- Jquery $3 : TreeView Plugin -->
<link rel="stylesheet" href="<?php echo getURLdomain(); ?>/source/admin/jquery/TreeView/css/jquery.treeview.css" />
<script type="text/javascript" src="<?php echo getURLdomain(); ?>/source/admin/jquery/TreeView/js/jquery.treeview.js"></script>
<script type="text/javascript">
	
	$(document).ready(function(){
		
		// first example
		$("#browser").treeview({
			collapsed: true,
			animated: "medium"
		});
		
		// second example
		$("#navigation").treeview({
			persist: "location",
			collapsed: true,
			animated: "fast"
		});
		
		// third example
		$("#red").treeview({
			animated: "fast",
			collapsed: true,
			unique: true,
			persist: "cookie",
			toggle: function() {
				window.console && console.log("%o was toggled", this);
			}
		});
		
		// fourth example
		$("#black, #gray").treeview({
			control: "#treecontrol",
			persist: "cookie",
			cookieId: "treeview-black"
		});

	});
</script>

<!-- Jquery #4 : Fade Out -->
<script type="text/javascript">
$(document).ready(function() {
   window.setTimeout("fadeMyDiv();", 1000); //call fade in 3 seconds
 }
)
function fadeMyDiv() {
   $("#msg").fadeOut(10000);
}
</script>

<!-- Jquery #5 : Expand Div -->
<style type="text/css">
.switch a{
  color: blue;
}
.switch a:hover{
  color: red;
}
</style>
<script type="text/javascript" src="<?php echo URL_HOME_SITE; ?>/source/admin/jquery/Expand/scripts/expand.js"></script>
<script type="text/javascript">
$(function() {
    $("div.divExpand").expandAll({
      expTxt : "[Show]", 
      cllpsTxt : "[Hide]",
      ref : "div.collapse",
      showMethod : "show",
      hideMethod : "hide",
    });
    
});
</script>

<!-- Jquery #6 : CKEditor -->
<script type="text/javascript" src="<?php echo URL_HOME_SITE; ?>/source/admin/jquery/ckeditor/ckeditor_basic.js"></script>

<!-- Jquery #7 : Picnet Table -->
<!--<script type="text/javascript" src="<?php //echo URL_HOME_SITE; ?>/source/admin/jquery/PicNet/picnet.table.filter.min-customized.js"></script>-->
<script type="text/javascript" src="<?php echo URL_HOME_SITE; ?>/source/admin/jquery/tablefilter/picnet.table.filter.min.js"></script>
<script type="text/javascript" src="<?php echo URL_HOME_SITE; ?>/source/admin/jquery/PicNet/picnet.zebratable.js"></script>


